using System.Collections;
using UnityEngine;

public class FriendsUIJoinMessage : MonoBehaviour
{
	public UILabel message;

	public float showDurationSec;

	private IEnumerator hideCoroutine;

	public void HideMessage()
	{
		if (hideCoroutine != null)
		{
			StopCoroutine(hideCoroutine);
		}
		hideCoroutine = null;
		base.gameObject.SetActive(false);
	}

	private IEnumerator Hide(float time)
	{
		yield return new WaitForSeconds(time);
		hideCoroutine = null;
		base.gameObject.SetActive(false);
	}
}
